package com.example.springmvc_demo2.entiry;

import lombok.Data;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Data
public class UserEntiry {

    private String username;
    private String password;

    @RequestMapping(value = "/login2",method = RequestMethod.POST)
    public String login2(UserEntiry userEntiry){
        System.out.println("username:"+userEntiry.getUsername()+",password:"+userEntiry.getPassword());
        return "index";
    }
}
